Rearranges test structure