test check in/out and branching