#31 Asynchronous tests for password hash; improved error message and js wrapper logic in index.js