Fixing bug #WFLY-1467 by padding the stream to a manifest file with a '\n' if this char is missing at the end of the file.
Adding some tests for bunk reading.