fixing comment + adding unit test for checkPasswordProtectedShare