Fix tests on Ubuntu