Add test cases for load with inverted mask