Add test for BadTitleError exception

Change-Id: Ib7c5b9f385aa3fc3e68c55927b0cd5adc82ac1d1
Merge "Add test for BadTitleError exception"