Add unit tests about login and register options