The existing legal_extension_test seemed pretty weak.  All it did was tell us that renaming a valid jpg to a legal (but incorrect) extension wouldn't throw an exception.  So, I recast it with a new role that seemed more useful.