Tests that the various lock commands result in the expected locking status.
