not use has_attributes because of supporting rspec3.0