Test plan creation happens BEFORE data planning. The test plan defines the scope, approach, resources, and schedule for testing. Only after understanding what needs to be tested can you plan the data requirements for those tests. Data planning depends on the test plan.