tests for saving template