Add unit tests for InvalidArgumentException