Added test harness and reordered flat t dir into treed tests structure.