more tests around function failures