Fix metaData serialization bug
Fix build process
Make original onerror function public
Mocha tests
Merge branch 'tests'