Fix bug in which lack of newline on the last line of organism or groups file causes test to fail incorrectly