added exceptions_spec.rb test
changes