Mobe line and linegroup tests to a separate file
Don't remove spurious whitespace. It's needed for the tests

i.e. revert part of the previous commit
Don't remove spurious whitespace (again)
Add support for linenum