add spec test for sample_app