Tests and corrects RelayModule
Organizes test
Adds ordereddict to preserve insertion order for index
dynamic waits