Some fine tuning to allow using pdo_sqlite in the tests, this closes #2