hwrt/analyze_data.py and hwrt/record.py: removed logging.basicConfig; added tests for record.py