tests: fixed unlinking temporary sqlite database