need a test for function.