added tests for populated templates