add testAddAndGetUser and make to success testing
reduce duplication code