Some clean up of the raidtest and implementation of some functions that were previously unused