Validation and test update

Validation now checks if frequency is greater than 0