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

@ludwikkazmierczak , wouldn't this mean that if there's an exception thrown in any of the lines within the try{}, then switchOutOfIframe() would still execute?
If that's the case, we do not want that behavior right?