undefined check added
one small fix and more tests for err no / code
Merge pull request #7 from binarykitchen/master

Undefined check added for err no and err code