Fixes failing test and adds additional test for before filter