Test updated to use Frequency class instead of string declaration