make getData function and test