Prefer @test_data to individual instance variables

Remove the individual instances variables used to store test parameters
and use the @test_data hash instead.

Also update each place where these parameters were referred to.