[tests] fixed inherits problem and listen for the correct event