fixing test case and condition check for DOT status
Merge pull request #29 from dimagi/dot_calc_fix

fixing test case and condition check for DOT status