refactor controller specs