Add sample mapping file parsing function and tests