Added additional unit tests and refactoring for listing projects, retreive project id