fixed tests for 3.4
fixed tests for 2.7