add test case for #26
reduce minNumber to length(l) to avoid complete removal of peaks; fixes #26