mock() and stub() are deprecated. Switched to double()