Added a new Test case for test_rank_changes with pep8 coding convention