check inconsistent frame period
more tests and clean up