Unit setting and test mode setting Backbone tweaks

These seemed like simpler/more flexible variables (and ones that didn't have to be constantly recomputed when the unit was changed) than the `is_on_first`/`is_on_last` stuff.