Add test case for assertNoRedirect