Add testing for masked neighborhoods