HPCC-9404 Test DEDUP, KEEP(RIGHT)

Added a test (all platforms pass)

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>