Add test case for Bug 906164.

The scenario we want to test is:

1) Launch an app.
2) DOM side SystemMessageManager has been created.
3) No system message handler is set.
4) Broadcast system message internally. The message is pending until the app sets the message handler.
5) The app sets the message handler and it should be signalled right away.