adapted tests to /api/*