addressing most comments
tests for filter_mapping_file