Added tests for fetch_*() db utilities