Fix errors caused by `double.as_null_object.freeze`
Deprecate freezing a test double