appcontroller spec