check the return value from a set in test cases