fixed deprecation warnings in spec/controller/*