unittest for filepoll