New tests for events obj and code tweaks. Plus fixed notes examples.