Implemented loginRedirectMiddleware tests
Added tests for server util module