Test `PartialFunction`

Currently fails with Serializable wart, see issue #40