introduce new test metadata module and reorganize test dependencies