improved spec testing on controller