Added an integration test using an invalid certificate