Refactors failing log tests to use page object pattern; misc improvements.