Make prev/next default to null
Add basic tests