fix(mask): Formatter wasn't returning correct value

Added test for formatter