Tests for various set/unset errors