Created a unit test for controller example

This unit test is able to be run by re-shaper on  phantomjs