More test for sql and actions