updating the views test to accept the correct parameters