3a8a078 add unit test and adjust error handling

2 files Authored by mikem a year ago, Committed by tkopecek a year ago,
    add unit test and adjust error handling
    
    (no errors were found with the code, but needed to avoid masking them in
    tests)
    
        
file modified
+32 -28