adds unit tests for user model