functional testing of controllers