Testing for parameter stability in dynamic models across frequencies