tests for sql builder functions in utils.py