fixing test case and condition check for DOT status