added test for error code and info, ref #90