comparison of test and set and test and test and set