unit tests for the appcontroller