Fix error in callback api
Import sync and async tests
handle multiple records in async mode
Add mocha test option file
Fix typo