Fixed minor errors in test.js
Fixed unique ID's in Events