test complex-type operations