fixed test sampling