Replace deprecated mock call to double