Moved TestModelAdapterFactory to the test class