created test for new next() functionality, previously added comments to code for understanding, removed logs