VE-1413 Adding test for suggestion and search suggestion for inserting templates

Why are you assigning -1 to numberOfTemplates, if you assigning different value in the next line?