Several Fix

1. CatFilter bug fix
2. StateAnalyzer NPE fix
3. ABTest bugs fix and refine