added documentation for transaction REST API
fixed test