Improve RSpec tests and fix full_title() function