fix test factories