Controller implementation and test suite