Added tests for changes related to form pointer and template contents.