test with errors