Replace deprecated `mock` usage for `double`