Added some tests, getType method on web hook handler

Signed-off-by: Nick Brook <nick.brook@ratemyplacement.co.uk>