appcontroller test fix