Fix test. Add setTimeout
Fix tick. Add bad_flag in function PutMob