created a test for the user index page