sample_test method added