add unit test for complex number, include test exception cases