test(driver-compat) add LazyDBObjectTest legacy test and fix corresponding classes