should be same as `$expected` is a Boolean.