Increased JSHint coverage. Fixed lint issues in test.