add display checks to stabilize desktop b2g tests

desktop B2G is a little slow and it revealed some timing dependent problems.