Add tests for the new local_redirect() method