test error conditions