tests: fixed exception