Fixed JSLint errors in test file and addressed comments in pull request.