Added test assign to function.