make a start on using RSpec for tests

see http://betterspecs.org/ for guidelines and documentation links