simple test for lock