fixed event subscription in test/index.dart