And some tests for sql transaction