Apply linting to tests

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>
Add special comments to declare globals and jshint config in test files

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>
Fix linting issues in tests

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>