added tests for prev/next keys