changing default numCodes value to 10 (default the API uses too)
adding more tests for the User model