simplified exception testing