Added user tests
Added tests for authenticate