Still not fully tested, but seems to work. Fixed minor error. (When $TESTMODE == 1, swapped in experiment was incorrectly being put into ACTIVE after it was put into TESTING.)