Generating tests problem