added tests for ToOne and ToMany