Fixes running the client integration tests only in mirror and without opening it