Using before filters for testing