convert from hardcoded test path to a NSDocument subclass