margin test dos