Is there anywhere I can read about (unit)testing for side-effects? Like writing to a file, or the clipboard?