switch mock to double. mock is deprecated