Fix mocha/chai test setup
Improve test cases for undefined results
Add more Underscore functions to prelude