Refactored unit-tests to use underscore.js
Added better parameter-support for testing