Fixed JSHint issue and a minor unit test issue.