Fix compatibility with 2.6 and change test to nose