Add test for signals.

The test was not added in Main.as because the signals implementation was not merged yet.