Fix tests generation.