Added a test file, and fixed a typo related to gauge fixing. Ready for merge.