add missing signal.h include
Add correct exit value to failed tests

(Note from @antirez: modified to apply to 2.8)