examples, tests: improve spectral flux example and add test