Added tests for onLogin redirect with and without hashes