add statement to pdo getter for lifetime check
fix pdo tests
add lifetime tests