test: use expect_throw to catch expected exceptions

Use expect_throw to catch expected exceptions in tests.

Change-Id: I410655a43328d44c5b9f95dff509c132499bcd07
Signed-off-by: Patrick Venture <venture@google.com>
1 file changed