Add unit tests for Point, System, Security, SecurityDomain; fix a typo i...

...n ByteArray().length