test Lock