display() test

add testDisplay() to test the method display