margin test