test case sorted, the solution suggest that there is something wrong with apply step.