add spec for class controller