fixed api test environment