Moved tests from spec/models/base_spec.rb into shared examples; refactored shared examples