Tests: Complete project_generator.

Modify add_* methods to return the object they've
added to the DB.

Add needed field to project constructor.