repository tests using apis