created unit tests for User