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

#668 - Adding tests for a couple of Controllers in the sample.
if you don't include `appbase`, then you're computing a path based on `$pwd` which seems really fragile.