Use tobe instead of testing the result of an equality