Tests (and related fixes) for InteractionMachine!