UI fixes for installer dialog

Responses to code review comments for the UI from #3158. Note that all the changes in the unit test file (below the new code for managing the test window) are just a reindentation.