add test case for expecting errors
@bug W-1914104@
@rev tbliss@
Merging origin/lin/master-pending/test_expecting_error into master