Unit test for redirecting to accept doc handler