Shared tests for PSD.rb and PSDNative.