test for stop loss