converted test samples into a list and looped through it for assert