Add a test for /api/competitions