Wrote a set of unit test for the Spirit Controller.