Added testcase.
Refactoring drawdown analyzer.