Add unit tests for TargetId class.
Restructure symbol test to check behaviour when we're skipping the associated data segment.
Add check for null argument to TargetId constructor
Add test for securityMetadata.getSecuritySourceDate().

Also update API doco