Updated the code for isTitle as per new conventions.
Added new tests for count,isTitle,