printf tests improvements