Fix a bug in TestComplex