#186 added precheck to handle expected values