add more examples on resource_spec.rb