added test cases for delivery_report.rb and resource.rb