Fixes spec issues with boolean equality checks