test_integration: mocking open so key related tests don't fail

when there is no id_rsa.pub file, now it is not required for tests