Add SMW\HooksTest class

This class tests implemented hooks and verifies consistency
among those invoked methods and ensures a hook generally
returns with true.

Change-Id: I4da67aec8cdaa6aa5535dce57be8456cb876c541