replaced deprecated mock with double to remove warnings
replaced deprecated any_number_of_times with stub method syntax to remove warnings