added tests and documentation for chain()
added fulfillOrReject()