Fix for test files without trailing newlines (closes #12)