added test for WriteLine