sourcedr: Reorganize unit tests

This commit reorganizes unit tests and functional tests.

Test: ./runtest.py
Change-Id: I397a417dc33599b13941f723eecd17a0d5fcdae3
13 files changed