Remove RSpec Deprecation warnings by using new expect/allow syntax