wrote some tests for User