Add tests for FormulaPin and simplify implementation