Tests for objects, commands and events

Change-Id: I50f75b6f88483ff7c94f99ac2dafbb238f492a38