Unit test for API helper function for creating projects.

https://catami.atlassian.net/browse/CAT-610