Issue #668: Sample should be covered by a basic functional test.

#668 - Adding tests for a couple of Controllers in the sample.
I don't understand very well why you need ```AppDomain.CurrentDomain.SetData```, what is it for?