Tests for objects, commands and events

Change-Id: Icbcfa6180ae41b5042e20bdfbad8a484b473daf8