fixed test cases for res.format
Merge pull request #1710 from hacksparrow/master

Fixed test cases for res.format