added page length check to test