Added unit test for ProgressMonitor.