Added some func tests