replace be_true with eq(true), be_false with eq(false)