Snow Leopard: Implement check_and_set_test