Fixed Unit Tests for qstat