fixed py2.7 tests