Added some test cases for Analysis.py