testing the lock