[MAT-310] patch failing test, incorrect exception