added new npm test cases, updated index to include events and messaging framework