Merge pull request #1710 from hacksparrow/master

Fixed test cases for res.format