fixed typo
added next() / prev() methods + testcases to core module
added next() / prev() methods