add helpers and test cases for page titles