Added Ivy imports and updated to copy template file to test directory if not present