(#2251) add specs around resource_for_record