Test error conditions.