Added test script template
Better handling of repo inference, removed irrelevant 'merged' tag