Functional test for BaseController