Add initial tests

Cover test scenarios except the ones about conflicts.