Modfied urls in authentication
Added tests for authentication