Add tests for reading branch JSON