tests improvements using rpec let variable
added a title helper method