Added testing.

Tests ordering of indexed items.