declare var and add unsolicted event so tests pass