Fix api path add tests.