Fixed partialfunction and other tests