The requirement of a lawful consideration in the law of obligations (section 987)