gustafn
committed
on 02 Apr 13
- make test cases more robust
- beautify code