fixed broken unit test
Merge pull request #645 from shatterednirvana/fixed-unit-test-for-appcontroller

fixed broken unit test