With everything working, you can close up the unit. Carefully fold all of the leads into the space between the case halves (use bits of painters tape to hold them down). Insert and tighten the case screws. Put the battery compartment case back on.
Now you can put the unit back into action, powered either from the wall or from batteries as you wish!