tests w/ factory