Adding test for malformed tokens in mask expression