Fix mispelling in fragility function

Added a test checking the dict-like interface of the FragilityModel (in particular the len() and __iter__() methods)