Tests didn't work properly on earlier python