Added testing documentation for functions