Port SampleEvent strategy to tornado, improve tests