test/lock.js added