Replaced deprecated use of :stub with :double