Add and test lumimask setter function

@ticoann please review