add test case from tobyink (closes #87)