Update beforeFilter to pass data as second argument to next. Fixes #114
Update beforeFilter tests for new optional data argument