Tests for User class.