add local (idb) tests, make them pass