Tests for objects, commands and events

Change-Id: I452e057ae3bdac4dfa04ea6330d6c9ea3000a73c