fix the thread in process to run properly. add test for monitor module and validate methods