Repeat run of test works

Fixed psdb.test.ts so npm test can be run multiple times in a row.