Add unit tests to handle duplicate user registration attempts
Merge pull request #2521 from edx/db/create-account-400

unit tests to handle duplicate user registration attempts