change test for render instead of redirect