testing freq for nan