added test with complex types