nicer error reporting in apply
partial application test