add debug output to check_error test
fix some todos in tests
implement isNull
add isNull tests
fix wrong exception text