Fixed clear command so it clears out any lines in the buffer before it sets clearDisplay to true.
Fixed tests since adjusting received command logging.