Correct logic error.  Update tests. Nil-check payload hash