Switch to RSpec and add some basic tests