adding tests of the misc module

I apparently started this off of the simulation branch so will have to wait until that gets merged to merge this one