add automerge test script

Reviewer: trivial