added infinite random frequency detection to test bench