Added before filter tests