Fix passByReference tests by removing whitespace

For browser compatability we should just check the content of the
elements and ignore whitespce.

@bug W-2351895@
@rev rjayaramappa@
Merging origin/tbliss/master-pending-passByReference-testfix into master