Testingbranchfunction