Fixes deadlock in unit tests.
Adding Remote-Debug Unit Tests. Enhancing mock objecs.