test the region growing method