Added support for relationships without model in tests