Check thrown error in every spec