separated branch test case into separate functions.