new testcase to cover all branches