PartialFunction tests