added pure templating test; fixed multiple tags search