Added test for function.