improve display() test

add a test case where more than one lines were added