Testing with randomEmit