adds tests for saving and restoring mapposition