Example for unit testing controller with chain command