Move AbstractUnitTest into modules

It's required for MetadataSchemaTest to compile.