Fix broken test
Add lock test without "with" clause.