Fixed toThrowError check in greetPeople spec