fix template tests