added a title helper
refactor the title test