Fix mistake in spectrum test