improve display() test

add a test for the case where display() is called when the text file is
empty