added test cases and lock checks in servermaster