added unit test for swf-template directive