fixed unit tests that were breaking on python2.6/ubuntu