Unit Tests: fix an undeclared variable warning, and other pass-by-reference warnings that occur on some versions of PHP.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7972 cdf35c40-ae34-48e0-9cc9-0c9da1808c22