replace toBe() with toEqual() matcher
polished specs for readability