Changed mask to array in kernel tests