code of test_features a little bit revised