fixed unit tests

Fixed unit test after changing the path to /api