added fix for complex ndarray tests