expanded test, checks for function present and does a faulty operation