test same client registration twice will return in same tokens(coming from db), added test, helper methods extracted