testing using a function to generate a target