Added nested transaction support.
Added test cases showing transaction support scenarios.