added better coverage for tests as well as python version test for >=2.6