Tests for #22.