Tests fixed

Fixed tests 

( works on python 2.7, 3.3)