Update tests + add workaround to fix sqlite issue in tests.