Added the ability to create test data for a project.  Refactored and tidied up test code.

Related Work Items: #184, #186, #187