Add test for optimized alpha computation