fix testDisplay functions