Add tests for title helper