fixed concurency bug in monitor and 2 test cases to main