Fixed tests running in sqlite