Removed test case from this commit, fixed JSHint warnings.