Apply removal of ignored files, add tests.

Minor improvements.