Fix test case. Remove test support for python 2.6 in travis.