Test rig (__DEBUG_LOCAL__) and squashed bugs