Add tests for webhook controller