adding rspec tests, removing methods I do not need