add onError callback options
validate returns either null or array of errors, move to mocha/chai for testing
remove old spec file