Adds the missing tests for the User and Registration entitiesThis commit adds the unit tests for the User and Registration entities. This tests revealed a minor bug in the Registration.getUser() method, that has been solved.