Functional testing of controllers