fixed test
fixed applymask output