Added unit test for with_lock