[registry] improved tests, sqlite/tc bugfixes