fix missing expected exception in extras/test.jl

another small fix to extras/test.jl to make exception handling logic make sense