Add unit tests to handle duplicate user registration attempts