Add test for dumping resource as file #6
Add method to dump resource as file #6