Fix template dialog test not working