Added test support with chai, chai as promised and mocha
Finished generartion of unit tests for repositories
Added support for required fields in MongoDB documents