Fix tests depending on systems