refactor companies controller tests