Fix tests subdirectory for ResourceT in Persistent types, and add example.