Add debug output in test
Fix incorrect test for issue 36