adding rspec, reformatting tests