improved test coverage

Used rspec to write specs for methods in decorators, models and controllers. Excpet
for some complicated methods, wrote specs for most others