add tests for issue 16, cannot reproduce at the moment