The behaviour you describe is easily understood: you read a line, then echo it to all files in the directory except "test", then read the next line, append to all again, and so forth.
Your request is not quite complete. Does it matter which line goes to which file? What if there's more lines than files / more files than lines?
no it doesn't matter what line goes what file.
for example test has in it:
abcd
efgh
ijkl
mnop
I have 4 files as well in the same directory.
All i want is: abcd goes to the end of file 1 efgh goes to the end of file 2 ijkl goes to the end of file 3 mnop goes to the end of file 4