added test for lock service