updated api controller and test