added testing frameworks and ran jshint/jscs. Many files fixed of errors in tests.