Fixed where bug did not fail when expected.