Added unit tests for serialize
Added karma.conf.js
Merge pull request #1 from youngrafi/master

Added unit tests