Fix tests to expect installation or not