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

Change-Id: I67743e0851dcf2ef391e51360e601e901e479c96