Added test cases with rspec and title helper