Why not do the `sprintf` here a made code more simple in `expectFactory` ?