added streesstest and fixed a small error