Changed test to check presence of items instead of exact order as it may vary from jdk to jdk.