use expectation and also use the before filter on controller