Added tests for sprintf with a hash as parameter.

This is something that is broken in JRuby and we realized that mri also doesn't have test coverage.