Tests for title helper