Fix sdb tests hanging, some of them still fail.