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

#668 - Adding tests for a couple of Controllers in the sample.
Try to avoid doing autoformats and the like when making small changes like this, it just makes it harder to review.