[tests] add unit tests for projects.js