Fix ambiguous type in test