Added test for comparing branch objects