adding test for function wrapper