add unit tests to bqutil.py