adding ability for test cases to get pdo object