Add tests for formula node

Add tests for formula node