added some stub functions and Async as a dep
added check to stop, so that we don't try to stop if we aren't listening
added tests
moved tests to proper folder