Fix testing on python 2.5