Fixed unittest when testing with SQLite