updated api test controller to show api query