Add test to cover branch that was lost in the last commit