fixed some broken appcontroller unit tests