Added rspec tests and fixed two bugs

Hello guys, added the rspec tests for our app.
Also the tests cover basic funcionality plus fix the two known bugs.
Guys i checked and version 2.0.0 is well supported (ruby => 1.9.3):
https://devcenter.heroku.com/articles/getting-started-with-rails4#specify-ruby-version-in-app

As the rubyinstaller latest version is: 2.0.0-p481 released
I removed so I could use ruby-2.0.0