Update tests to use formulas instead of strings