Moved isSupportedEntityType() in hook_insert/delete, updated the tests.