tests; fix `x` in xFactory