add specs for before_filter