Added tests for User class