Add unit test to verify main plv8 aggregate function in a browser (easier to test).