Add test case for signal emission API