Added test cases for the GPS file export/import, and fixed several bugs
spanning several classes.