Pile o tests

(and some sundry bits of explanation and things