new exceptions and tests #issue 291