Adding test for user register

- Must reorder server to include a config for testing database. Now it is using the real one so be cautions - after each run, User collection is cleared