Added some unit tests in shortcuts_spec.rb (coverage 100%)