Adapt flatten and fromRdf tests to the resolution of issue #279

Please verify that this is proper and works once you've updated your implementations, and the spec text. Then we can merge it.