Checking controller with unit testing