Fix value returned by createProject.
Improve functional test for api