refactored test - adding students into a new method