test returning data