Make test_lib_masked finally pass all tests