I don't have a reliable way to test my soil yet. But, I can at least offer personal recommendations for the water part.
I would start off getting a pH control kit if you don't already have one. You need the acid and base solutions to adjust your water:
Amazon.com : General Hydroponics pH Control Kit for a Balanced Nutrient Solution : Ph Meter : Garden & Outdoor
www.amazon.com
After a while of testing your pH using the solution, you could upgrade your testing with these two-piece digital pen testers:
Amazon.com: VIVOSUN pH and TDS Meter Combo, 0.05ph High Accuracy Pen Type pH Meter ± 2% Readout Accuracy 3-in-1 TDS EC Temperature Meter, UL Certified : Industrial & Scientific
www.amazon.com
This is cheap Amazon stuff, not professional-grade tools. But, they get the job done for me.