to test the quality of sth to see whether it is suitable for you before you buy it
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition