Cleaning code bwa and its tests