Fixing tests april 11

Wrote unit tests for user.