Fixed after filters on controllers. Added unit test.