Completed ComplexDemo test cases.