Unit testing for real-time controllers