Added tests to sample app.