Fixing spec deprecations

There are deprecations in the current specs around true/false comparison. This cleans them up.