Utilities added to deal with async calls in unit-tests. 

Logger test that relays on async calls fixed.