add test code for dbi