Moved createUser to its own file.
refactored back end tests.