Clearing 1st pane on reset

The 1st commit is unrelated, but quite important.

The 2nd sets up XCode's unit tests (not the Sen Testing framework - I couldn't figure out how to actually launch QS with it) and the 3rd fixes the unit tests I wrote