Automated tests with Guard

Change-Id: Id9b8a02a26f20f8ebb54439d8c774c9ef8e5d40a