Fix unit tests broken by commit d994ca86
Fix string vs symbol errors in unit tests (ruby 1.9 compat)
Add sleep to test_stop_listening to allow time for thread to terminate before checking thread.alive?