Using field settings istead of code for redirect the user.
Adjusting the test to the new confiugration.