fix: Erase last control unit in test
The erasure of the last control unit in the composite_controller_validator_test is off by one and is undefined behavior. It can cause a segmentation fault in some environments (e.g., newer clang)
This is now fixed in main.
Edited by Stephen Ryan