Fix log_out test

Looks like the log_out test was failing because I was checking for the
wrong exception type.