Add comments and improve readability of test code
Fix #105 division by zero error if elapsed time is zero
Merge branch 'issue/105' of pull request #106

This pull request fixes the bug file transfer eventually fails due to division by zero error. Also refactors the test of progress monitor.