Misc test code written for SWC