Test papply's error case