Added testing documentation for functions

Added testing information and removed trailing whitespace