Added test for log file becoming smaller.
fixed bug where removal of the log file wasn't handled correctly
Merge branch 'development'