Implemented unit tests for transaction, both insert and delete.