refactored controller specs