fixed before_filter hacks in controller & functional/test_helper