fixed test for #286, added additional test, might break in py3 now