Added an if statement to make the tests to work.
Added in an if statement checking the environmnet to help
with testing.
Added things for testing.
Fixed the duplicate user bug.