To test the pot you would set your meter to measure resistance and measure the resistance between each outer pair of lugs on each level of the pot, then set the pot rotation about in the middle and check the resistance between each middle lug and the two lugs next to it.
Based on your photo, I would replace that pot just based on where solder has gotten.