added msg_thresholds unit tests
added more unit tests for check_threshold and msg_thresholds
updated LICENSE