Add test for locking delay