[MAT-387] Fix terminal test