refactoring and add 2 test

1 test is for equals two users
2 test is for equals contains data in map