Application test fixes.
Improved example.