Add tests for Pundit redirect