change test loading system to be compatible with python2.6