Re #8472 - Implemented get_certificate method in CertificateService and added a test testing this method
Re #8472 - Extended integration test asserting correct reading from the database
Re #8472 - Improved SQL connection/cursor fixtures in such way that connection to DB happens only once per test module