clean up unneeded tests, refactor existing code, add chisquare probability using ABAnalyzer gem