Added a new Test case for test_rank_changes with pep8 coding convention

Added a New Test case for test_rank_changes with pep8 coding convention

New Test case for test_rank_changes following pep8 coding convention