Improved testing of the JSON provider. Fixed Python 3.0 issues discovered by testing.