JSHint cleanup
Fix test coverage