ignore template files
fixes type for ref_length
test mean error