updating analysis.py
adding more tests