Normalize rspec syntax to remove deprecation warnings

The newer versions of RSpec begin to complain on methods like `stub` and `should`. This normalizes the syntax across the test suite to use the newer expectation and mock syntax to remove the deprecation warnings.