removing some logstatements, added testcoverage for lockresource