Fix unit tests with new /api paths