Created test for sorted set.