add test of lock
fix