Fix deprecation warnings about be_false and be_true