(PUP-3274) Replace use of AST::String with AST::Leaf in tests
Tests only test that the value can be evaluated and the basic
Leaf class can be used for this instead of the AST::String class as
this allows it to be removed (it is only used in tests).