added user object and construction tests