fix a deadlock bug & add console tester project
- Resolve deadlock issue, but still don't like the design.
- Add no working version of Console tester