Added data attribute to view tests redirect function