added a small unit test

checks whether controller exists and is defined