add test to cover last commit case