Added tests for TargetHashTrx Reader and Writer