one small fix and more tests for err no / code