adjusted ApiControllerTest