fixed deprecation warnings in spec/controller/*
Merge pull request #631 from bmaddy/remove-deprecations

fixed deprecation warnings in spec/controller/*