Fixed implementation of getVariants for broken test.