Fix unit tests failing if sqlite is not present