[eclass] Fix build when test is not in IUSE