fix a failing test
add a test for typeMismatch error codes