RESTRICT AUTOMERGE Add test for attaching null application thread am: 0307812a90

Change-Id: Iab43da8ff994c8797efbf68c56239566045df6a7