Couple of script changes; removing duplicate closure, returning sequence number when message is sent and added a test file