partial function testing