Updated unit security tests. (added comments)