Add tests for plain history and branch support