Add test for eventstream.sampledby