Add tests for issue 66. Cannot reproduce the panic. Updates #66.