Convert test to using stubbing
Ensure RSpec resets mocks each run
Add TravisCI configuration
Add TravisCI badge