Fixed Jasmine tests in light of Logger changes, and wrote test to cover case where data passed is not a dictionary