Added unit tests for Protection.