CLOUDIFY-2153 Added test for templates persistence.