replace deprecated .mock method with .double