Unit test for one to one field in a resource