replaced deprecated mock method usage for double