unadded redundant neg comp element check. Added test to check for exception throwing