updated repository tests to use api's for dependent entities