Adding tests to sample application

Thils builds off of #126.