Snow Leopard: Fix bug in check_and_set_test