Move and improve keypath tests for IndexedDB