generateTest method working draft