Changed page loading test from checking length to checking for html content