Sorted test code.