Testing various error scenarious.