Coding conventions
more tests around function failures