removed protected_attributes gem and fixed tests to work on rails 4