testing a lock