Tests for the commit_on_success_with_read_committed decorator.

TNL-367