Add test log steps to page functions

Each function states what the purpose is, so that the developer
can immediately see where the test was at the time of failure.

Also removes some minor duplicated code and fixes editor page
column query.