issue #1098: some tests for error checking