[#183] Refactor controller tests to use shared examples.