added more tests for the api resource loader