small edit to sample_test.cpp