As such, there is no exact way to test the code, it mostly depends on the kind of Job you are running or the project you are working.
As for the dataset, the best practice is to select a range of dataset which contains all the possible range and values