Changed parameter to the end of the function declaration.
Fixed the function returns.
Fixed the Test