how to test resistance