Memory leaks detected and deleted. Horizon sensor test fully working.