fixed unit tests using long ints for py3k