av_state no longer automatically resets when reloading library. Fixed sort_models to use given argument. Added av_state test data.