[BUG #7215] fixed test
[BUG #7223] Public method for adding samples to methods