fixes, end-to-end tests

The sampler was never called before.