Mock Run Loop

Create a Mock Run Loop to handle asynchronous unit tests.