Controller API tests using db