added func tests