add test for RightMarginMode