ensure_throws_verify to verify exception and conditions

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>