Add unit tests for fix_w6()