Added unit test for histogram example with Swing GUI
- Added a unit test for the runGuiExample method: check some high level properties of the created GUI.
- HistogramGuiExample: let the runGuiExample method return the frame, enabled an invisible frame, and removed some unused code.