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

Why are you assigning 0 to numElementOnPage, as you assign some value again in the next line?