Test complex schema