Refactored project unit tests.
Refactoring repository unit tests
Refactored repository unit tests.

Also a little fix on project unit test.