t: refactor.

Add TEST_SOURCE_DIR to common header.
Ensure all tests are run correctly.