Fix fluka write

Moved newline character and modified tests. This may undo an overzealous earlier change :)