fixed bugs in unit tests (test_samplers.py)