add a AbstractTestCase and move assertFiles to test-root
make static function testable/mockable
fix autoload problem
add tests for many services