fix of mix-and-match attack and indefinite-freeze-attack

This patch fix the error type in these two tests, it should show the correct error type now.