Added tests for some sql_* management commands