TST: Handle lack of `json` library in python2.5 for samples test case