Added tests for insertfile.py; starting transition to using logging facilities