[WIP] integrate functional testing suite

there are still failing tests that show issues in getPrev/getNext