modified test for pagelements