fixed test for #286, added additional test, might break in py3 now
Merge pull request #290 from joernhees/master

Fix test for #286