create test for page index