Tests for zap_*