refactor api test location