Add test for lock_version.