Add basic RSpec test

This first version of a test covers most flows, expect for the different
config options.