Remove direct controller call from directive and add test for it.