add more unit tests for User