update AlignPCLThresholdsWriter
and add unit tests
#36177
Merged
AlignPCLThresholdsWriter
and add unit tests
#36177