added error expectation test script