Adding better tests for the existing API routes.