fix boolean test