refactor page title test