adding tests for User