Test exhibiting issue
Testing for null before trying to do Object.keys on it
Adding a few more tests for sanity
merged SocalNick:issues/1; switched test frameworks to mocha and expect.js