Tests for error types