Write tests for Newline class