wrote branch test