terraform/config: add test for applying resource template