Fixed tests for Gentoo Linux