test-cases with errors