converted tests to work with python 2.6 (previously only 2.7 and higher)